package com.ruoyi.point.mapper;

import java.util.List;
import com.ruoyi.point.domain.PointRule;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * 积分规则Mapper接口
 * 
 * @author hy
 * @date 2025-08-12
 */
@Qualifier("pointRuleMapper1")
public interface PointRuleMapper 
{
    /**
     * 查询积分规则
     * 
     * @param id 积分规则主键
     * @return 积分规则
     */
    public PointRule selectPointRuleById(Integer id);

    /**
     * 查询积分规则列表
     * 
     * @param pointRule 积分规则
     * @return 积分规则集合
     */
    public List<PointRule> selectPointRuleList(PointRule pointRule);

    /**
     * 新增积分规则
     * 
     * @param pointRule 积分规则
     * @return 结果
     */
    public int insertPointRule(PointRule pointRule);

    /**
     * 修改积分规则
     * 
     * @param pointRule 积分规则
     * @return 结果
     */
    public int updatePointRule(PointRule pointRule);

    /**
     * 删除积分规则
     * 
     * @param id 积分规则主键
     * @return 结果
     */
    public int deletePointRuleById(Integer id);

    /**
     * 批量删除积分规则
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePointRuleByIds(Integer[] ids);
}
